layui.use('element', function() {
	var $ = layui.jquery,
		element = layui.element; //Tab的切换功能，切换事件监听等，需要依赖element模块

	//触发事件
	var active = {
		tabChange: function() {
			//切换到指定Tab项
			element.tabChange('demo', '22'); //切换到：用户管理
		}
	};

});

function navto() {
	parent.layui.index.openTabsPage('views/jsp/Processcenter/mydaiban.jsp', '我的代办');
}

function zhuanban() {
	layer.open({
		type: 2,
		title: '转办',
		maxmin: true,
		shadeClose: true, //点击遮罩关闭层
		area: ['800px', '340px'],
		content: 'views/jsp/Processcenter/zhuanban.jsp'
	});
}

function chuanyue() {
	layer.open({
		type: 2,
		title: '传阅',
		maxmin: true,
		shadeClose: true, //点击遮罩关闭层
		area: ['800px', '340px'],
		content: 'views/jsp/Processcenter/chuanyue.jsp'
	});
}
let data = [{
	"handlingopinions": "没得问题",
	"handlingtime": "2021-08-20 08:20",
	"handlingpersonnel": "小白"
}]
layui.use(['form', 'table', 'layedit', 'laydate'], function() {
	var form = layui.form,
		layer = layui.layer,
		layedit = layui.layedit,
		laydate = layui.laydate;
	var table = layui.table;

	table.render({
		elem: '#test',
		data: data,
		cellMinWidth: 80 //全局定义常规单元格的最小宽度，layui 2.2.1 新增
			,
		cols: [
			[{
				field: 'handlingopinions',
				title: '处理意见'
			}, {
				field: 'handlingtime',
				title: '处理时间'
			}, {
				field: 'handlingpersonnel',
				title: '处理人员'
			}]
		]
	})
});
